package com.sgb.knowledgeshare.view.adapter;

import android.content.Context;
import android.graphics.Bitmap;
import android.widget.ImageView;

import com.sgb.knowledgeshare.BR;
import com.sgb.knowledgeshare.R;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;
import java.util.List;

/**
 * Created by fq on 2020/9/23 0023
 * Description：
 */
public class VideoCoverAdapter extends BaseRecycleAdapter<Bitmap> {

    public VideoCoverAdapter(Context context, List<Bitmap> datas) {
        super(context, R.layout.item_share_videocover, datas);
    }
    @Override
    public void convert(ItemViewHolder holder,Bitmap entity) {
        holder.setBinding(BR.viewModel, entity);
        ImageView itemimvs = holder.itemView.findViewById(R.id.item_imv);
        itemimvs.setImageBitmap(entity);
    }
}
